public class Test2 {
    public static void main(String[] args) {
      Son son = new Son();

    }

}

class Father{
    Father(){
        System.out.println("father的构造方法");
    }
    static {
        System.out.println("father静态代码块");
    }
    {
        System.out.println("father实例化代码块");
    }
}
class Son extends Father{
    Son(){
        System.out.println("son构造方法");
    }
    static {
        System.out.println("Son静态代码块");
    }
    {
        System.out.println("son实例化代码块");
    }
}
